package ar.com.pasae.dao.avisos;

import java.util.List;
import ar.com.pasae.avisos.AvisoInmobiliario;
import ar.com.pasae.dao.BaseDaoHibernate;


public class AvisoDao extends BaseDaoHibernate<AvisoInmobiliario, Integer> implements IAvisoDao {

	@Override
	public List<AvisoInmobiliario> findAll() throws Exception {
		return getHibernateTemplate().loadAll(AvisoInmobiliario.class);
	}

	@Override
	public AvisoInmobiliario findById(Integer id) throws Exception {
		return getHibernateTemplate().get(AvisoInmobiliario.class, id);
	}

}
